package test01;

/**
 * @Author czl
 * @Date 2024-04-11
 */
public class MainTest {
    public static void main(String[] args) {
        IWenHou iWenHou = (name) -> {
            System.out.println("hei," + name);
        };
        iWenHou.sayHello("大傻椿");


        User user = new User();
        IWenHou iWenHou1 = user::goodMorning;
        iWenHou1.sayHello("黑佬");

        IWenHou iWenHou2 = User::goodAfternoon;
        iWenHou2.sayHello("露狗");
    }
}
